package com.atguigu.spzx.product.mapper;

import org.apache.ibatis.annotations.Mapper;
import vo.common.dto.h5.ProductSkuDto;
import vo.common.entity.product.ProductSku;

import java.util.List;

@Mapper
public interface ProductSkuMapper {

    List<ProductSku> findProductSkuBySale();

    List<ProductSku> findByPage(ProductSkuDto productSkuDto);

    ProductSku getById(Long skuId);

    List<ProductSku> findByProductId(Long productId);

    void updateSale(Long skuId, Integer num);
}